package com.hound.config.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * Created by lupeng on 2018/4/1.
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

//        mpv.addPropertyValue("defaultTargetDataSource", defaultDataSource);
//        mpv.addPropertyValue("targetDataSources", targetDataSources);

    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHandler.getCurrentDataSourceType();
    }
}
